package com.topisv.tms.rest.qimen.qmentity.request.returninstoragecreate;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="request")
@XmlAccessorType(XmlAccessType.FIELD)
public class ReturnInstorageCreate {
	
    @Valid
    @NotNull
	@XmlElement(name="returnOrder")
	private ReturnOrder returnOrder;
	
    @Valid
    @NotNull
	@XmlElementWrapper(name="orderLines")
	@XmlElement(name="orderLine")
	private List<ReturnOrderItem> item;

	public ReturnOrder getReturnOrder() {
		return returnOrder;
	}

	public void setReturnOrder(ReturnOrder returnOrder) {
		this.returnOrder = returnOrder;
	}

	public List<ReturnOrderItem> getItem() {
		return item;
	}

	public void setItem(List<ReturnOrderItem> item) {
		this.item = item;
	}	
	
	
}